<?php

use Faker\Generator as Faker;

$factory->define(\App\ArticleModel::class, function (Faker $faker) {
    return [
        //
        'user_id' => $faker->randomDigit,
        'type' =>0,
        'from_id' => $faker->randomDigit,
        'title' => $faker->title,
        'summary' =>$faker->title,
        'author_avatar' => $faker->imageUrl(),
        'cover' => $faker->imageUrl(),
        'content' => $faker->text,
        'views_count' => $faker->randomDigit,
        'comments_count' => $faker->randomDigit,
        'published_at' => time(),

    ];
});



